import React from 'react';
import {Text,View,Button} from 'react-native'
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import HomeScreen from './HomeScreen'
import SettingScreen from './SettingScreen'

export default class MainScreen extends React.Component {

    render() {
        const Tab = createBottomTabNavigator();
        return (
            <NavigationContainer>
                <Tab.Navigator>
                    <Tab.Screen name="主页" component={HomeScreen} />
                    <Tab.Screen name="设置" component={SettingScreen} />
                </Tab.Navigator>
            </NavigationContainer>
        );
    }
}
